<template>
  <div>
    <div class="trip-lis">
      <div class="trip-hd">
        <span>周末去哪儿</span>
      </div>
      <div class="trip-bd">
        <ul class="trip-items">
          <li v-for="item in tripList" :key="item.id">
            <img :src="item.imgUrl" alt="" />
            <p>{{ item.whereLis }}</p>
            <span>{{ item.news }}</span>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['tripList'],
  data() {
    return {}
  }
}
</script>

<style lang="less" scoped>
.trip-hd {
  span {
    font-size: 0.38rem;
    color: #212121;
    padding: 0.3rem 0.34rem;
    display: block;
  }
}
.trip-items {
  li {
    background-color: white;
    padding-bottom: 0.4rem;
    p {
      font-size: 0.44rem;
      margin: 0.28rem 0;
      padding-left: 0.36rem;
      color: #212121;
    }
    span {
      display: block;
      font-size: 0.36rem;
      padding-left: 0.36rem;
      color: #212121;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      width: 9.5rem;
      padding-top: 0.02rem;
    }
  }
  img {
    height: 3.8rem;
    width: 100%;
  }
}
</style>
